Skip to content

Conversation

mutumbakato
Copy link
Collaborator

@mutumbakato mutumbakato commented Dec 4, 2024

Details

This PR demonstrates how to customize text selection contextual menu in Flutter from the native iOS SDK.
The demo code implements the method pdfViewController(_:menuForText:onPageView:appearance:suggestedMenu:) from PDFViewControllerDelegate from the PspdfkitPlatformViewImpl class. This method creates and returns a custom context menu when text is selected in the PDF view. The custom menu includes a single action titled "Custom Action" that prints "Custom Action" to the console when triggered.

NOTE: This PR should not be merged. It's for demonstration purpose only.

@mutumbakato mutumbakato changed the title Flutter custom contextual menu - iOS Flutter custom contextual menu Mar 14, 2025
@mutumbakato mutumbakato self-assigned this Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant